home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / MPW_TOOL / TOOLS / TOOLS_WI / FSEARCH_ / FSEARCH.DOC
Text File  |  1990-04-06  |  2KB  |  31 lines

  1. fsearch ╤ FAST pattern-searching MPW¬ tool  version 1.04   February 9, 1990
  2.  
  3.      This tool implements a Boyer-Moore-Gosper (with a C optimization) pattern search, which in this implementation is approximately fifteen times faster [15X] (worst case╤with single character patterns and small files╤three times faster; better case╤with six or seven character patterns on a ten megabyte file╤twenty times [20x] faster) than the search tool supplied with MPW¬ 3.x.  (Also beats Gofer¬ 2.0 or Microsoft¬ Word 4.0 by the same margins.)  Use it when you don╒t need the regular expression capability of the Apple¬-supplied search, or when you just want gut-knotting speed.  Will search both the data and resource forks of non-TEXT files, too.
  4.  
  5. Usage: fsearch [-s] [-c] [-r] pattern sourcefile(s) [>targetfile]
  6.  
  7. "pattern" contains literal text only
  8.  
  9. -s (make search case sensitive; default is not);
  10. -c (output count of matches only; default is to output the entire line in which a match is found);
  11. -r (search resource fork rather than data fork; default is data fork).
  12.  
  13. version 1.04, adds resource fork searching, multiple file search and triple-clickable output
  14.  
  15. fsearch is FREE╤it may be given away, but NEVER SOLD.
  16.  
  17. type fsearch(enter) for online help.
  18.  
  19. Copyright ⌐ 1990 by Grady Ward.  All Rights Reserved.
  20. Comments?  Link: D2783 or phone (408) 373-1491
  21. CIS 76166,1075
  22. thanks to Scott Collins for several valuable suggestions╔
  23.  
  24. "MPW" and "Apple" are trademarks of Apple Computer, Inc.
  25. "Gofer" is a trademark of Microlytics, Inc.
  26. "Microsoft" is a trademark of Microsoft, Inc.
  27.  
  28.  
  29.  
  30.  
  31.